package ee.ttu.serge.container.stack;

public class Node {

   private Node nextNode;
   private int value;

   public Node(int val) {
      value = val;
   }
   
   public Node getNextNode() {
      return nextNode;
   }

   public void setNextNode(Node nextNode) {
      this.nextNode = nextNode;
   }

   public int getValue() {
      return value;
   }

   public void setValue(int value) {
      this.value = value;
   }

}
